<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%request.setAttribute("pageTitle", "文章列表"); %>
<%@ include file="../include/header.jsp" %>
<script type="text/javascript" src="/js/article/workspace.js"></script>

<div style="width:98%;" class="search-header">
<s:form id="listForm" action="/articles" method="get" modelAttribute="article">
	<%@ include file="../include/_page_form.jsp" %>
	<span class="search-item"><label>标题</label><s:input path="title" placeholder="请输入..." size="20"/> </span>
	<span class="search-item"><label>作者</label><s:input path="author" placeholder="请输入..." size="20"/> </span>
	<span class="search-item"><label>关键词</label><s:input path="keyword" placeholder="请输入..." size="20"/> </span>
	<span class="search-item"><label>内容</label><s:input path="content" placeholder="请输入..." size="20"/> </span>
	<span class="search-btn"><input type="submit" value="搜索" /></span>
</s:form>
</div>

<table style="width:98%">
	<tr class="caption"><td>标题</td><td>作者</td><td>关键词</td><td>参与标注的人</td><td>&nbsp;</td></tr>
	<c:forEach items="${articles.content}" var="article" varStatus="count">
	<tr dataid="${article.articleId }"  <c:if test="${count.index % 2 ==0 }">class="odd"</c:if>>
		<td><c:out value="${article.title }" /></td>
		<td><c:out value="${article.author }" /></td>
		<td><c:out value="${article.keyword }" /></td>
		<td class="js-usernames" ></td>
		<td>
			<a href="/articles/${article.articleId }/marktag">进行标注</a>
			<a href="/articles/${article.articleId }/showresult">查看标注结果</a>
		</td>
	</tr>
	</c:forEach>
</table>

<%@ include file="../include/_page_footer.jsp" %>
<%@ include file="../include/footer.jsp" %>